package cn.isjinhao.se.sql.grammar.statement;

import cn.isjinhao.se.sql.grammar.CurdStatement;
import cn.isjinhao.se.sql.grammar.CurdStatementVisitor;
import cn.isjinhao.se.sql.lexical.token.Token;

/**
 * @Author ISJINHAO
 * @Date 2021/2/22 19:02
 */
public class Identifier extends CurdStatement {

    public Identifier(Token name) {
        this.name = name;
    }

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitIdentifier(this);
    }

    private final Token name;

    public Token getName() {
        return name;
    }
}